package com.fpswork.core.model;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONArray;
import com.fpswork.util.JSONUtils;



/**
 * 用SQL分页
 * @author spf
 *
 */

public class PageEntity {

	private int code = 0;     //不知道干什么用
	private int page = 1;     //当前页数
    private int limit = 20;  //每页显示条数
    private int pagesize;        //总页数
    private int count;           //总记录数
    private String sql;    //直接查询结果集的语句
    private Map<String, String> search;  		//存放对应的表头名称和对应的数据库字段
	private JSONArray data;  
	private List datalist; 
	
	
	
	public List getDatalist() {
		return datalist;
	}
	public void setDatalist(List datalist) {
		this.datalist = datalist;
	}
	public Map<String, String> getSearch() {
		return search;
	}
	public void setSearch(Map<String, String> search) {
		this.search = search;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public int getPagesize() {
		return pagesize;
	}
	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public String getSql() {
		return sql;
	}
	public void setSql(String sql) {
		this.sql = sql;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public JSONArray getData() {
		return data;
	}
	public void setData(JSONArray data) {
		this.data = data;
	}
	
	
	
	
}
